
<%@ page import="institutional.Course" %>
<!doctype html>
<html>

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta name="layout" content="kickstart" />
	<g:set var="entityName" value="${message(code: 'course.label', default: 'Course')}" />
	<title><g:message code="default.show.label" args="[entityName]" /></title>
</head>

<body>

<section id="show-course" class="first">

	<table class="table">
		<tbody>
		
			<tr class="prop">
				<td valign="top" class="name"><g:message code="course.subject.label" default="Subject" /></td>
				
				<td valign="top" class="value"><g:link controller="subject" action="show" id="${courseInstance?.subject?.id}">${courseInstance?.subject?.encodeAsHTML()}</g:link></td>
				
			</tr>
		
			<tr class="prop">
				<td valign="top" class="name"><g:message code="course.professor.label" default="Professor" /></td>
				
				<td valign="top" class="value"><g:link controller="professor" action="show" id="${courseInstance?.professor?.id}">${courseInstance?.professor?.encodeAsHTML()}</g:link></td>
				
			</tr>
		
			<tr class="prop">
				<td valign="top" class="name"><g:message code="course.size.label" default="Size" /></td>
				
				<td valign="top" class="value">${fieldValue(bean: courseInstance, field: "size")}</td>
				
			</tr>
		
			<tr class="prop">
				<td valign="top" class="name"><g:message code="course.timetable.label" default="Timetable" /></td>
				
				<td valign="top" class="value">${fieldValue(bean: courseInstance, field: "timetable")}</td>
				
			</tr>
		
			<tr class="prop">
				<td valign="top" class="name"><g:message code="course.available.label" default="Available" /></td>
				
				<td valign="top" class="value"><g:formatBoolean boolean="${courseInstance?.available}" /></td>
				
			</tr>
		
			<tr class="prop">
				<td valign="top" class="name"><g:message code="course.dateOfCreation.label" default="Date Of Creation" /></td>
				
				<td valign="top" class="value"><g:formatDate date="${courseInstance?.dateOfCreation}" /></td>
				
			</tr>
		
		</tbody>
	</table>
</section>

</body>

</html>
